import { defineStore } from 'pinia'

export const useNavigationStore = defineStore('navigation', {
    state: () => ({
        activeTopNav: 'home'
    }),
    actions: {
        setActiveTopNav(nav) {
            this.activeTopNav = nav
        }
    },

    persist: true, // 启用持久化
})